package com.s3.khospitalds.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.s3.khospitalds.entity.Patienthosp;
import com.s3.khospitalds.mapper.PatienthospMapper;
import com.s3.khospitalds.service.PatienthospService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: xw
 * @CreateTime: 2025/3/6
 * @Description: 住院患者档案表
 * @Version: 1.0
 */
@Service
public class PatienthospServiceImpl extends ServiceImpl<PatienthospMapper, Patienthosp> implements PatienthospService {
    @Autowired
    private PatienthospMapper patienthospMapper;

    @Override
    public int insertPatienthosp(Patienthosp patienthosp) {
        return patienthospMapper.insertPatienthosp(patienthosp);
    }

    @Override
    public List<Patienthosp> selectName(String name) {
        return patienthospMapper.selectName(name);
    }

    @Override
    public int updateName(Patienthosp patienthosp) {
        return patienthospMapper.updateName(patienthosp);
    }

    @Override
    public int deleteById(Integer id) {
        return patienthospMapper.deleteById(id);
    }
}
